@import "../css/var";

.input {
  height: 0.45rem;
  display: flex;
  flex-direction: column;
  padding: 0 0.1rem;
  position: relative;
  border-bottom: $border;
}

.for-text {
  height: 0.16rem;
  line-height: 0.16rem;
  position: relative;
  top: 50%;
  margin-top: -0.08rem;
  color: #ccc;
  transition: all 0.2s linear;
}

.text {
  width: 100%;
  height: 0.29rem;
  border: 0;
  outline: 0;
  background: none;
  position: relative;
  z-index: 1;
}

.line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: $primary;
  bottom: -1px;
  left: 0;
  transform: scale(0, 1);
  transition: all 0.2s linear;
}

.to-top {
  top: 0;
  margin-top: 0;
  font-size: 0.14rem;
  color: $primary;
  transition: all 0.2s linear;
}

.unfold {
  transform: scale(1, 1);
  transition: all 0.2s linear;
}
